<script setup>
import { ref, toRefs } from 'vue';

const obj = ref({
  money: 10000,
  name: 'zs'
})
const { money, name } = toRefs(obj.value)
</script>

<template>
  <div>{{ money }}</div>
  <div>{{ name }}</div>
  <button @click="money += 1000">点我加钱</button>
</template>
